IMNative Class Reference
| Inherits from | NSObject |
| Declared in | IMNative.h |
Overview
Class to integrate native ads in your application Use this class to integrate native ads in your application. For native ads, your application is given the raw assets for the ad. Your application can render these in a manner that is native to the look and feel of your application to drive better user engagement with the ad. If you need to customize aspects of ad impression and click-through reporting, your application can use the IMCustomNative class.
Tasks
-
– primaryViewOfWidth: -
customAdContentproperty -
adTitleproperty -
adDescriptionproperty -
adIconproperty -
adCtaTextproperty -
adRatingproperty -
adLandingPageUrlproperty -
isAppDownloadproperty -
delegateproperty -
keywordsproperty -
extrasproperty -
– initWithPlacementId: -
– initWithPlacementId:delegate: -
– load -
– isReady -
– reportAdClickAndOpenLandingPage -
– recyclePrimaryView
Properties
adCtaText
The text to be specified for the cta. Typically this should be the text of the button.
@property (nonatomic, strong, readonly) NSString *adCtaTextDiscussion
The text to be specified for the cta. Typically this should be the text of the button.
Declared In
IMNative.hadDescription
The description of the native ad.
@property (nonatomic, strong, readonly) NSString *adDescriptionDiscussion
The description of the native ad.
Declared In
IMNative.hadIcon
The icon url of the ad.
@property (nonatomic, strong, readonly) UIImage *adIconDiscussion
The icon url of the ad.
Declared In
IMNative.hadLandingPageUrl
The landing page url of the Native ad.
@property (nonatomic, strong, readonly) NSURL *adLandingPageUrlDiscussion
The landing page url of the Native ad.
Declared In
IMNative.hadRating
A custom rating field for the native ad.
@property (nonatomic, strong, readonly) NSString *adRatingDiscussion
A custom rating field for the native ad.
Declared In
IMNative.hadTitle
The title of the native ad.
@property (nonatomic, strong, readonly) NSString *adTitleDiscussion
The title of the native ad.
Declared In
IMNative.hcustomAdContent
The content of the native ad.
@property (nonatomic, strong, readonly) NSString *customAdContentDiscussion
The content of the native ad.
Declared In
IMNative.hdelegate
The delegate to receive callbacks
@property (nonatomic, weak) id<IMNativeDelegate> delegateDiscussion
The delegate to receive callbacks
Declared In
IMNative.hextras
Any additional information to be passed to InMobi.
@property (nonatomic, strong) NSDictionary *extrasDiscussion
Any additional information to be passed to InMobi.
Declared In
IMNative.hInstance Methods
initWithPlacementId:
Initialize a Native ad with the given PlacementId
- (instancetype)initWithPlacementId:(long long)placementIdParameters
- placementId
The placementId for loading the native ad
Discussion
Initialize a Native ad with the given PlacementId
Declared In
IMNative.hinitWithPlacementId:delegate:
Initialize a Native ad with the given PlacementId
- (instancetype)initWithPlacementId:(long long)placementId delegate:(id<IMNativeDelegate>)delegateParameters
- placementId
The placementId for loading the native ad
- delegate
The delegate to receive callbacks from IMNative
Discussion
Initialize a Native ad with the given PlacementId
Declared In
IMNative.hisReady
Indicates if the native ad is ready to be displayed.
- (BOOL)isReadyDiscussion
Indicates if the native ad is ready to be displayed.
Declared In
IMNative.hprimaryViewOfWidth:
The primary view of the native ad. This view is rendered by InMobi and should be used by the publisher to display the ad. Impressions will be computed on this view.
- (UIView *)primaryViewOfWidth:(CGFloat)widthParameters
- width
The width of the primary view. Typically this should be the screen width.
Discussion
The primary view of the native ad. This view is rendered by InMobi and should be used by the publisher to display the ad. Impressions will be computed on this view.
Declared In
IMNative.h